/* stylelint-disable selector-class-pattern */
@include b(drbar-anchor-style) {
  width: 260px;

  &.isCollapse {
    display: none;
  }

  // 去除头部margin
  height: 100%;
  padding: 17px 20px 20px;

  .el-menu {
    border-right: none;
  }

  .el-tabs.el-tabs--top {
    height: inherit;
  }

  .el-tabs .el-tabs__header {
    height: inherit;
    margin: 0 !important;

    .el-tabs__nav-wrap {
      height: inherit;
    }

    .el-tabs__nav-wrap::after {
      visibility: hidden;
    }

    .el-tabs__nav-prev,
    .el-tabs__nav-next {
      display: flex;
      align-items: center;
      height: inherit;
    }

    .el-tabs__nav.is-top {
      height: inherit;
    }

    .el-tabs__item.is-top {
      align-items: start;
      height: 100%;
      padding-top: 10px;
    }

    .el-tabs__nav-scroll {
      height: inherit;
    }
  }

  // 调整显示项字体大小
  .el-tabs__item {
    font-size: getCssVar('font-size', 'medium');
  }

  @include e(item) {
    &.el-menu-item {
      justify-content: flex-start;
      padding: 8px 10px 7px;
      padding-left: 10px !important;
      margin: 0 0 2px;
      border-radius: 4px;

      &:hover {
        background-color: #edf0f9;
      }
    }
  }

  @include e(counter) {
    margin-left: 6px;
    color: #313949;
    text-align: center;
    background-color: #dbe6ff;
  }

  .el-sub-menu {
    margin-bottom: 25px;
  }

  .el-menu-item {
    height: 34px;
    cursor: pointer;
  }

  .el-sub-menu__title {
    height: 35px;
    padding-left: 0 !important;
    margin-bottom: 15px;
    margin-left: 10px;
    font-size: 15px;
    pointer-events: none;

    &:hover {
      background-color: #fff;
    }

    .el-sub-menu__icon-arrow {
      display: none;
    }
  }

  @include e(icon) {
    position: absolute;
    top: 25px;
    left: 10px;
    width: 15px;
    height: 21px;
    padding: 5px;
    cursor: pointer;
    background-position: -588px -27px;

    &.isCollapse {
      background-position: -608px -27px;
    }

    &::before {
      display: inline-block;
      width: 9px;
      height: 16px;
      cursor: pointer;
      content: '';
      background: var(--crmSprite) no-repeat -590px -29px;
    }
  }

  @include e(wrapper) {
    position: relative;
    width: 100%;
    min-width: 20px;
    height: 100%;

    &.isCollapse {
      background-color: #edf0f4;
    }
  }
}
